package com.orifine.orm.type;

import com.orifine.orm.Information;
import com.orifine.orm.Type;
import com.orifine.orm.information.AddressRandomInfo;
import com.orifine.orm.model.ColumnModel;

public class Address extends Type {
	private String value;
	
	public Address(){
		
	}
	
	public Address(String address){
		this.value = address;
	}
	
	@Override
	public String getScriptType(ColumnModel columnMapper) {
		return "TINYTEXT";
	}

	@Override
	public String getScriptValue(ColumnModel columnMapper) {
		return filterQuote(value);
	}

	@Override
	public Information getDefaultInfo(ColumnModel columnMapper) {
		return new AddressRandomInfo();
	}

}
